using System;
using System.ComponentModel.DataAnnotations;

namespace HengTong.Model.Db.Hr.Bill;

/// <summary>
/// 出厂申请表
/// </summary>
[Display(Name = "出厂申请", Description = "员工出厂申请表单", GroupName = "日常业务表单")]
public class SysDailyOutFactoryRequestBill : BaseBill
{
    [Required]
    [Display(Name = "员工ID", Description = "关联员工主键", GroupName = "退休信息")]
    public Guid? PersonId { get; set; }

    [Display(Name = "员工", Description = "关联的员工实体", GroupName = "退休信息")]
    public SysPerson Person { get; set; }

    // 出厂信息
    [Required]
    [Display(Name = "员工工号", Description = "员工工号", GroupName = "出厂信息")]
    [StringLength(128)]
    public string StaffNo { get; set; }

    [Required]
    [Display(Name = "员工姓名", Description = "员工姓名", GroupName = "出厂信息")]
    [StringLength(128)]
    public string Name { get; set; }

    [Required]
    [Display(Name = "出厂时间", Description = "出厂时间", GroupName = "出厂信息")]
    public DateTime? OutFactoryTime { get; set; }

    [Required]
    [Display(Name = "预计返回时间", Description = "预计返回时间", GroupName = "出厂信息")]
    public DateTime? ExpectedReturnTime { get; set; }

    [Required]
    [Display(Name = "事由", Description = "事由", GroupName = "出厂信息")]
    [StringLength(256)]
    public string Reason { get; set; }
}